package com.zxcz.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class User{
	private Integer id;
	private String name;
	private Date emailVerifiedAt;
	@JsonIgnore
	private String password;
	@JsonIgnore
	private String rememberToken;
	private Date createdAt;
	private Date updatedAt;
	private String account;
	private Integer iotProductId;
	private IotProduct iotProduct;
	private List<Devices> devicesList;
	private List<Role> roles; // 角色列表
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public Date getEmailVerifiedAt() {
		return emailVerifiedAt;
	}
	public void setEmailVerifiedAt(Date emailVerifiedAt) {
		this.emailVerifiedAt = emailVerifiedAt;
	}
	public String getRememberToken() {
		return rememberToken;
	}
	public void setRememberToken(String rememberToken) {
		this.rememberToken = rememberToken;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public Date getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
	public Integer getIotProductId() {
		return iotProductId;
	}
	public void setIotProductId(Integer iotProductId) {
		this.iotProductId = iotProductId;
	}
	public IotProduct getIotProduct() {
		return iotProduct;
	}
	public void setIotProduct(IotProduct iotProduct) {
		this.iotProduct = iotProduct;
	}
	public List<Devices> getDevicesList() {
		return devicesList;
	}
	public void setDevicesList(List<Devices> devicesList) {
		this.devicesList = devicesList;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", emailVerifiedAt=" + emailVerifiedAt + ", password=" + password
				+ ", rememberToken=" + rememberToken + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt
				+ ", account=" + account + ", iotProductId=" + iotProductId + ", iotProduct=" + iotProduct
				+ ", devicesList=" + devicesList + ", roles=" + roles + "]";
	}
	
}
